package MyDoubleLinkedList;

public class Test {
    public static void main(String[] args) {
        MyDoubleLinkedList myDoubleLinkedList = new MyDoubleLinkedList();

//        myDoubleLinkedList.addFirst(1);
//        myDoubleLinkedList.addFirst(2);
//        myDoubleLinkedList.addFirst(3);
//        myDoubleLinkedList.addFirst(4);
//        myDoubleLinkedList.addFirst(5);
//        myDoubleLinkedList.addLast(6);
//        myDoubleLinkedList.addLast(7);
//        myDoubleLinkedList.addLast(8);

        //myDoubleLinkedList.addIndex(9, 9);

        myDoubleLinkedList.addFirst(1);
        myDoubleLinkedList.addFirst(1);
        myDoubleLinkedList.addFirst(1);
        myDoubleLinkedList.addFirst(1);
        myDoubleLinkedList.addFirst(1);
        myDoubleLinkedList.addFirst(1);
        myDoubleLinkedList.display();

//        myDoubleLinkedList.removeAllKey(1);

        myDoubleLinkedList.clear();
        myDoubleLinkedList.display();

    }
}
